package com.em.tuppence.web.security.openid;

import org.springframework.security.core.AuthenticationException;

import com.em.tuppence.core.model.application.User;

public class AuthenticationSucessButMissingRegistrationException extends AuthenticationException {

	private User errorUser = null;
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public AuthenticationSucessButMissingRegistrationException(String msg, User user) {
		super(msg);
		this.errorUser = user;
	}

	public AuthenticationSucessButMissingRegistrationException(String msg, Throwable t) {
		super(msg, t);
	}

	public AuthenticationSucessButMissingRegistrationException(String msg) {
		super(msg);
	}
	
	public User getErrorUser() {
		return this.errorUser;
	}
}
